document.ready(function() {
	webSpinner.spin(getItem('loadSpin'));

    setValue('menuid', getUrlParam('menuid'));
    queryKey('ok', 'yes');
});

function queryKey(flag, permission = 'no') {
    var param = {};
    param.ctrl = 'other';
    param.func = 'getOtherInfo';
    param.otherid = getUrlParam('otherid');
    param.menuid = getAjaxValue('menuid');
    param.permission = permission;
    param.flag = 'view';

    sendAjax(param, function(result) {
        other.info = result.otherInfo;

        if (result.permission != null && result.permission != '') {
            other.permission = result.permission;
        }

        setDisplay('loadSpin', 'none');
        setDisplay('mainBg', '');
        webSpinner.spin();
    });
}

function back() {
    parent.closeSlipIframeDiv();
}